package org.springbus.habit.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.JdbcType;

/**
 * <p>
 * 客户信息表
 * </p>
 *
 * @author Mr.Han
 * @since 2024-05-16
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("consumer_info")
@Schema(description = "客户信息表")
public class ConsumerInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description ="唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Schema(description ="用户名称")
    @TableField("username")
    private String username;

    @Schema(description ="密码")
    @TableField("password")
    private String password;

    @Schema(description ="手机号")
    @TableField("phone")
    private String phone;

    @Schema(description ="邮箱")
    @TableField("email")
    private String email;

    @Schema(description ="昵称")
    @TableField("nick_name")
    private String nickName;

    @Schema(description ="来源")
    @TableField("source")
    private String source;

    @Schema(description ="0-有效 1-无效")
    @TableField(value = "status",jdbcType = JdbcType.TINYINT)
    private Integer status;

    @TableField("salt")
    private String salt;

    @TableField("token")
    private String token;

    @Schema(description ="角色ID集合，用逗号分隔")
    @TableField("role_ids")
    private String roleIds;

    @Schema(description ="是否删除 0=未删除 1=删除")
    @TableField("deleted")
    private Boolean deleted;

    @Schema(description ="创建时间")
    @TableField("gmt_create")
    private Date gmtCreate;

    @Schema(description ="修改时间")
    @TableField("gmt_modified")
    private Date gmtModified;
}
